<?php
$caption = BUtils::T('bonus_credits_detail_lbl');
$this->pageTitle = Yii::app()->name . ' - ' . $caption;
?>
<div class="container" style="width:480px; max-height:320px; overflow:auto;">
	<div class="box_white">
		<div class="biz-form highlight">
			<h3>
				<?php echo $caption; ?>
			</h3>
			<div class="fieldswrap relative" id="bonus-help">
				<div class="fields mobile">
					<table class="">
						<tr>
							<th>No.</th>
							<th><?php echo BUtils::T('redeemed_time_lbl'); ?></th>
							<th><?php echo BUtils::T('bonus_credits_lbl'); ?></th>
						</tr>
<?php
$total = count($rows);
foreach ($rows as $k => $v) {
	$num = $total - $k;
	echo <<<HTML
	<tr>
		<td>{$num}</td>
		<td>{$v['redeemed_time']}</td>
		<td>1 €</td>
	</tr>
HTML;
}
?>
					</table>
				</div>
			</div>
		</div>
	</div>
</div>
<script type="text/javascript">
$(function() {
	//open a special box
	$('.preview_special').facebox({
		loadingImage: '<?php echo Yii::app()->baseUrl ?>/images/loader-bar.gif',
		closeImage: '<?php echo Yii::app()->baseUrl ?>/images/btn-close.png',
		overlayClose:false,
		width: 360
	});
});
</script>